import { Result } from 'antd';
import { TextWidget } from '@inbiz/react';

const NoFoundPage = ({ loading }: { loading?: boolean }) => {
  return loading ? (
    <div
      style={{
        width: '100%',
        display: 'flex',
        flexDirection: 'column',
        justifyContent: 'center',
        alignItems: 'center',
      }}
    >
      <Result
        status="404"
        title="404"
        subTitle={<TextWidget>global.pageError</TextWidget>}
      />
    </div>
  ) : (
    <div></div>
  );
};
export default NoFoundPage;
